public class MacrocellBs
{
	// 用户数目相关
	int MaxUsersNum; 
	int currentUsers;
	boolean LimitFlag;
	//基站的坐标
	double posX;
	double posY;
	
	//基站的覆盖半径
	double radius;
	//基站的id
	int id;
	
	public String bsType = "MACROBS";
	
	//设置基站的位置
	public void setPosition(int MacrocellBsX, int MacrocellBsY)
	{
		this.posX = MacrocellBsX;
		this.posY = MacrocellBsY;
	}
	//设置基站覆盖半径
	public void setRadius(int radius)
	{
		this.radius = radius;
	}
	
	//设置基站的id
	public void setID(int BSID)
	{
		this.id = BSID;
	}
	
	//判断基站是否达到了最大服务能力
	public boolean isFull()
	{
		if(this.MaxUsersNum == this.currentUsers)
		{
			this.LimitFlag = true;
		}
		return LimitFlag;
	}
	
	//增加用户
	public void addUser()
	{
		this.currentUsers = this.currentUsers + 1;	
	}
	
	//删掉用户
	public void delUser()
	{
		this.currentUsers = this.currentUsers - 1;	
	}
	
}
